#include "plugin.h"

Plugin::Plugin() :
	id(0),
	name("未知插件"),
	logoPath(""),
	information("未知插件的介绍"),
	level(0),
	version("1.0.0")
{

}

quint32 Plugin::getId() const
{
	return id;
}

void Plugin::setId(quint32 value)
{
	id = value;
}

QString Plugin::getName() const
{
	return name;
}

void Plugin::setName(const QString &value)
{
	name = value;
}

QString Plugin::getLogoPath() const
{
	return logoPath;
}

void Plugin::setLogoPath(const QString &value)
{
	logoPath = value;
}

QString Plugin::getInformation() const
{
	return information;
}

void Plugin::setInformation(const QString &value)
{
	information = value;
}

quint32 Plugin::getLevel() const
{
	return level;
}

void Plugin::setLevel(quint32 value)
{
	level = value;
}

QString Plugin::getVersion() const
{
	return version;
}

void Plugin::setVersion(const QString &value)
{
	version = value;
}

QString Plugin::toString() const
{
	return  "{\"id\":" + QString::number(id) +
			", \"name\":\"" + name +
			"\", \"logoPath\":\"" + logoPath +
			"\", \"information\":\"" + information +
			"\", \"level\":" + QString::number(level) +
			", \"version\":\"" + version + "\"}";
}
